package com.sjlh.centurylianhua.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRole {
    @TableId(type= IdType.AUTO)
    private Integer id;//编号
    @TableField(value="userId")
    private Integer userId;//员工编号
    @TableField(exist = false)
    private String username;//员工姓名
    @TableField(value="roleId")
    private Integer roleId;//角色编号
    @TableField(exist = false)
    private String rolename;//角色名称
    public UserRole(Integer userId,Integer roleId){
        this.userId=userId;
        this.roleId=roleId;
    }
}
